using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Spiritmind
{
    public partial class Options : Form
    {
        private string[] f = { "No, really, there's no 3D acceleration in this program.", "I was only kidding.",
                    "You can click if you want, I will do nothing."};

        public Options()
        {
            InitializeComponent();
        }

        private void Options_Load(object sender, EventArgs e)
        {
            openFileDialog.InitialDirectory = Application.StartupPath;
        }

        private void btnOpen_Click(object sender, EventArgs e)
        {
            DialogResult dr = openFileDialog.ShowDialog(this);
            if (dr == DialogResult.OK)
            {
                tbFile.Text = openFileDialog.FileName;
            }
        }

        private void cb3D_Click(object sender, EventArgs e)
        {
            cb3D.CheckState = CheckState.Unchecked;
            MessageBox.Show(f[(new Random()).Next(0, 3)], "3D Acceleration", MessageBoxButtons.OK,
                MessageBoxIcon.None, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            FormMain.file = tbFile.Text;
            GC.Collect();
            this.Close();
        }
    }
}